package dfbz.demo01;

public class stuParsents {
    public String name;
    public int age;
    private int id;

    public stuParsents() {
    }
    public stuParsents(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
    public void eat(){
        System.out.println(this.name+"在吃饭");
    }
    public void sleep(){
        System.out.println(this.name+"在睡觉");
    }
    public void show(){
        System.out.println("我叫" + this.name + "," + "我今年已经" + this.age+"岁了");
    }
}
